package ch08;

class ExceptionEx17 {
	public static void main(String[] args) {
		try {
			method1();
		} catch (Exception e) {
			System.out.println("exception is handled in main().");
			e.printStackTrace();
		}
	}

	static void method1() throws Exception {
		throw new Exception();
	}
}
/*
exception is handled in main().
java.lang.Exception
	at ch08.ExceptionEx18.method1(ExceptionEx18.java:14)
	at ch08.ExceptionEx18.main(ExceptionEx18.java:6)
*/